package com.company.createtype.factoryfunction;

import com.company.Product;

public class CarFactory implements IMethodFactory {
    public static class CarProduct extends Product {

    }

    @Override
    public Product create() {
        return new CarProduct();
    }
}
